package text_2023_09_21;

import java.util.Scanner;

/**
 * @author Vv
 * @version 1.0
 * @project coding_learn
 * @description
 * @date 2023/9/21 10:11:33
 */
public class Counte {
    public static void main(String[] args) {
        System.out.println();
        Scanner scanner = new Scanner(System.in);
        String str = scanner.next();
        char[] s = str.toCharArray();
        int count = 0;
        for(char t : s){
            count += t == 'e' ? 1 : 0;
        }
        System.out.println(count);
    }
}
